﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace BrewXML.Core.Data
{
    [XmlRoot("HOPS")]
    public class HOP
    {
        #region NAME

        public string NAME { get; set; }

        #endregion

        #region VERSION

        public string VERSION { get; set; }

        #endregion

        #region AMOUNT

        public double AMOUNT { get; set; }

        #endregion

        #region ALPHA

        public double ALPHA { get; set; }

        #endregion

        #region TIME

        public int TIME { get; set; }

        #endregion

        #region TYPE

        public string TYPE { get; set; }

        #endregion

        #region HBU
        public double HBU
        {
            get
            {
                return 0.75 * ALPHA * AMOUNT;;
            }
        }

        #endregion

        #region Constructors

        public HOP()
        {
            NAME = "New Hop";
            VERSION = "1";
            AMOUNT = 0;
            ALPHA = 0;
            TIME = 0;
            TYPE = "Pellet";
        }

        #endregion
    }
}
